package creational.factory.simple;

import creational.factory.simple.factory.SimpleFactory;

/**
 * @author Zhang Ziyi
 */
public class Main {
    public static void main(String[] args) {
        SimpleFactory simpleFactory = new SimpleFactory();
        System.out.println("生产了:" + simpleFactory.produce(0).getName());
        System.out.println("生产了:" + simpleFactory.produce(1).getName());
    }
}
